<?php
/**
 * DAOStatement
 *
 * @package
 * @author
 * @copyright 2008
 * @version $Id: daostatement.class.php 42 2009-01-20 16:48:45Z ddjian $
 * @access public
 */
class DAOStatement extends PDOStatement {

  protected $pdo;

  /**
   * DAOStatement::__construct()
   *
   * @param mixed $pdo
   * @return
   */
  protected function __construct($pdo) {
    $this->pdo = $pdo;
  }

  /**
   * DAOStatement::fetchAssoc()
   *
   * @return
   */
  public function fetchAssoc() {
    return $this->fetch(PDO::FETCH_ASSOC);
  }

  /**
   * DAOStatement::fetchArray()
   *
   * @return
   */
  public function fetchArray() {
    return $this->fetch(PDO::FETCH_NUM);
  }

  /**
   * DAOStatement::fetchArray()
   *
   * @return
   */
  public function fetchAllAssoc() {
    return $this->fetchAll(PDO::FETCH_ASSOC);
  }

  public function fetchAllArray() {
    return $this->fetchAll(PDO::FETCH_NUM);
  }
}

?>